package com.example.demo_one.kotlin

fun main(){
    val man = Person1("张三", 18)
    man.show()
}


class Person1{
    var name:String = ""
    var age:Int = 0

    constructor(name:String, age:Int){
        this.name = name
        this.age = age
    }
    fun  show(){
        println("name: $name, age: $age")
    }
}